package com.frontop.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户可显示信息
 * </p>
 *
 * @author YangJia
 * @since 2021-09-13
 */
@Data
public class TUserShowInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "账号")
    private String userName;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "组织")
    private Integer organization;

    @ApiModelProperty(value = "状态，0：停用，1：启用")
    private Integer status;


    private String post;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "微信OpenID")
    private String openId;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//set
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")//get
    @ApiModelProperty(value = "添加时间")
    private Date createTime;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "头像")
    private String headImage;


    private String organizationName;
    private List<Integer> roles;
    private List<String> rolesText;
}
